package edu.unicen.beans;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Actor {

	private List<Task> tasks = new ArrayList<Task>();
	private List<Actor> partner = new ArrayList<Actor>();
	private Map<String,String> properties = new HashMap<String, String>();
	
	
	public Actor(){}

	public Task getTask(int i) {
		return tasks.get(i);
	}

	public void addTask( Task task) {
		this.tasks.add(task);
	}

	public Actor getPartners(int i) {
		return partner.get(i);
	}

	public void setPartners(Actor parttners) {
		this.partner.add(parttners);
	}

	public String getProperty(String prop) {
		return (String) properties.get(prop);
	}

	public void setProperty(String key, String prop) {
		this.properties.put(key,prop);
	}

	public Map<String, String> getProperties() {
		return properties;
	}

	public List<Task> getTasks() {
		return tasks;
	}	
	
}
